﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.Common;

namespace TianShiProject.Models.BaseInfo.Outsources
{
    public interface IOutsourceRepository
    {
        /// <summary>
        /// 显示外协单位
        /// </summary>
        /// <param name="name"></param>
        /// <param name="phone"></param>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        Task<PageResponse<OutsourceDto>> GetShowOutsource(string name, string phone, int pageindex, int pagesize);
        /// <summary>
        /// 删除外协单位
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteDelOutsource(int id);
        /// <summary>
        /// 批量删除外协单位
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DeleteDelsOutsource(string ids);
        /// <summary>
        /// 编辑修改
        /// </summary>
        /// <param name="outsourceDto"></param>
        /// <returns></returns>
        Task<int> PutUpdateOutsource(OutsourceDto outsourceDto);
        /// <summary>
        /// 添加外协单位
        /// </summary>
        /// <param name="outsourceDto"></param>
        /// <returns></returns>
        Task<int> PostAddOutsource(OutsourceDto outsourceDto);
    }
}
